package tako.wisers.com.android.apis;

import tako.wisers.com.android.apis.database.SQListManager;
import tako.wisers.com.android.apis.parser.StationXMLParser;
import android.app.Application;

public class TakoApplication extends Application {
	@Override
	public void onCreate() {
		super.onCreate();
		StationXMLParser.getInstance();
		SQListManager.build(this);
		SQListManager sqlm = SQListManager.getInstance();
		sqlm.createTable(SQListManager.TABLE_INDATABASE);
		sqlm.createTable(SQListManager.TABLE_INMEMORY);
	}

	@Override
	public void onTerminate() {
		super.onTerminate();
		SQListManager.getInstance().close();
	}
}
